/****************************************************************************
**
** Copyright © 1992-2014 Cisco and/or its affiliates. All rights reserved.
** All rights reserved.
** 
** $CISCO_BEGIN_LICENSE:LGPL$
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** $CISCO_END_LICENSE$
**
****************************************************************************/

#ifndef Q_CONTENT_TYPE_RESOLVER_H
#define Q_CONTENT_TYPE_RESOLVER_H

#include <string>
#include <QtNetwork/QNetworkAccessManager>

namespace webdriver {

class Error;

class QContentTypeResolver
{
public:
    QContentTypeResolver(QNetworkAccessManager *pmanager);
    ~QContentTypeResolver();

    Error* resolveContentType(const std::string& url, std::string& mimetype);

private:
    QNetworkAccessManager *manager_;

};

}

#endif // Q_CONTENT_TYPE_RESOLVER_H
